.class public Lcom/nemustech/regina/ElementAndroidWidget;
.super Lcom/nemustech/regina/Element;
.source "ElementAndroidWidget.java"


# static fields
.field private static final LOG_FLAG:Z = false

.field private static final TAG:Ljava/lang/String; = "ElementAndroidWidget"


# instance fields
.field protected mBitmap:Landroid/graphics/Bitmap;

.field private mCachedBitmapGetter:Ljava/lang/Runnable;

.field private mDelayHider:Ljava/lang/Runnable;

.field private mHandler:Landroid/os/Handler;

.field private mHideHostView:Ljava/lang/Runnable;

.field private mHideHostViewHelper:Ljava/lang/Runnable;

.field protected mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

.field protected mHostViewHeight:I

.field protected mHostViewWidth:I

.field protected mIsScrollableWidget:Z

.field protected mJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

.field protected mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

.field protected mResources:Landroid/content/res/Resources;

.field private mShowHostView:Ljava/lang/Runnable;

.field protected mWidgetId:I


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;I)V
    .locals 26
    .parameter "mainActivity"
    .parameter "widgetId"

    .prologue
    .line 42
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/Element;-><init>()V

    .line 40
    new-instance v22, Landroid/os/Handler;

    invoke-direct/range {v22 .. v22}, Landroid/os/Handler;-><init>()V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHandler:Landroid/os/Handler;

    .line 143
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$1;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$1;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 169
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$2;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$2;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mCachedBitmapGetter:Ljava/lang/Runnable;

    .line 207
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$4;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$4;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mDelayHider:Ljava/lang/Runnable;

    .line 218
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$5;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$5;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mShowHostView:Ljava/lang/Runnable;

    .line 226
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$6;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$6;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHideHostView:Ljava/lang/Runnable;

    .line 232
    new-instance v22, Lcom/nemustech/regina/ElementAndroidWidget$7;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget$7;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHideHostViewHelper:Ljava/lang/Runnable;

    .line 43
    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mContext:Landroid/content/Context;

    .line 44
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v22

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mResources:Landroid/content/res/Resources;

    .line 45
    move/from16 v0, p2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mWidgetId:I

    .line 47
    const/16 v22, 0x1

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget;->setJitImageProvideMode(Z)V

    .line 49
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getAppWidgetManager()Landroid/appwidget/AppWidgetManager;

    move-result-object v9

    .line 50
    .local v9, awm:Landroid/appwidget/AppWidgetManager;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getAppWidgetHost()Landroid/appwidget/AppWidgetHost;

    move-result-object v8

    .line 51
    .local v8, awh:Landroid/appwidget/AppWidgetHost;
    move-object v0, v9

    move/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v7

    .line 53
    .local v7, appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    if-eqz v7, :cond_2

    .line 54
    move-object v0, v8

    move-object/from16 v1, p1

    move/from16 v2, p2

    move-object v3, v7

    invoke-virtual {v0, v1, v2, v3}, Landroid/appwidget/AppWidgetHost;->createView(Landroid/content/Context;ILandroid/appwidget/AppWidgetProviderInfo;)Landroid/appwidget/AppWidgetHostView;

    move-result-object v6

    .line 55
    .local v6, appWidgetHostView:Landroid/appwidget/AppWidgetHostView;
    check-cast v6, Lcom/nemustech/regina/ReginaAppWidgetHostView;

    .end local v6           #appWidgetHostView:Landroid/appwidget/AppWidgetHostView;
    move-object v0, v6

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    .line 56
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move/from16 v1, p2

    move-object v2, v7

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAppWidget(ILandroid/appwidget/AppWidgetProviderInfo;)V

    .line 57
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setTag(Ljava/lang/Object;)V

    .line 58
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setOwner(Lcom/nemustech/regina/ElementAndroidWidget;)V

    .line 64
    invoke-static/range {p1 .. p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v12

    .line 66
    .local v12, rc:Lcom/nemustech/regina/ResourceCare;
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v22

    invoke-interface/range {v22 .. v22}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Landroid/view/Display;->getWidth()I

    move-result v14

    .line 67
    .local v14, screenWidth:I
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v22

    invoke-interface/range {v22 .. v22}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Landroid/view/Display;->getHeight()I

    move-result v13

    .line 69
    .local v13, screenHeight:I
    const/high16 v22, 0x7f06

    move-object v0, v12

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v5

    .line 70
    .local v5, actualWidth:I
    const v22, 0x7f060001

    move-object v0, v12

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v4

    .line 72
    .local v4, actualHeight:I
    invoke-static/range {p1 .. p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ResourceCare;->getWCBHeight()I

    move-result v20

    .line 73
    .local v20, tabBarHeight:I
    invoke-static {v5, v4}, Ljava/lang/Math;->min(II)I

    move-result v15

    .line 76
    .local v15, smallerSize:I
    move-object v0, v7

    iget v0, v0, Landroid/appwidget/AppWidgetProviderInfo;->minWidth:I

    move/from16 v22, v0

    add-int v22, v22, v15

    div-int v18, v22, v15

    .line 77
    .local v18, spanX:I
    move-object v0, v7

    iget v0, v0, Landroid/appwidget/AppWidgetProviderInfo;->minHeight:I

    move/from16 v22, v0

    add-int v22, v22, v15

    div-int v19, v22, v15

    .line 79
    .local v19, spanY:I
    mul-int/lit8 v22, v5, 0x4

    sub-int v17, v14, v22

    .line 80
    .local v17, spaceWidth:I
    const/16 v21, 0x0

    .line 81
    .local v21, widthGap:I
    if-lez v17, :cond_0

    .line 82
    div-int/lit8 v21, v17, 0x3

    .line 84
    :cond_0
    mul-int v22, v18, v5

    const/16 v23, 0x1

    sub-int v23, v18, v23

    mul-int v23, v23, v21

    add-int v22, v22, v23

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewWidth:I

    .line 86
    sub-int v22, v13, v20

    invoke-static/range {p1 .. p1}, Lcom/nemustech/tiffany/world/TFUtils;->getStatusBarHeight(Landroid/content/Context;)I

    move-result v23

    sub-int v22, v22, v23

    mul-int/lit8 v23, v4, 0x4

    sub-int v16, v22, v23

    .line 88
    .local v16, spaceHeight:I
    const/4 v10, 0x0

    .line 89
    .local v10, heightGap:I
    if-lez v16, :cond_1

    .line 90
    div-int/lit8 v10, v16, 0x3

    .line 92
    :cond_1
    mul-int v22, v19, v4

    const/16 v23, 0x1

    sub-int v23, v19, v23

    mul-int v23, v23, v10

    add-int v22, v22, v23

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewHeight:I

    .line 94
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewWidth:I

    move/from16 v22, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget;->setWidth2D(I)V

    .line 95
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewHeight:I

    move/from16 v22, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget;->setHeight2D(I)V

    .line 97
    invoke-static {}, Lcom/nemustech/regina/PanelMaker;->getInstance()Lcom/nemustech/regina/PanelMaker;

    move-result-object v11

    .line 98
    .local v11, panelMaker:Lcom/nemustech/regina/PanelMaker;
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewWidth:I

    move/from16 v22, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewHeight:I

    move/from16 v23, v0

    move-object v0, v11

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/PanelMaker;->createCustomPanel(II)Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-result-object v22

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    .line 99
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-object/from16 v22, v0

    const-string v23, "Panel for android widget"

    move-object/from16 v0, v23

    move-object/from16 v1, v22

    iput-object v0, v1, Lcom/nemustech/tiffany/world/TFCustomPanel;->mDescription:Ljava/lang/String;

    .line 100
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 101
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    const/16 v24, 0x0

    const/16 v25, 0x0

    invoke-virtual/range {v22 .. v25}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 102
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setOpacity(F)V

    .line 106
    .end local v4           #actualHeight:I
    .end local v5           #actualWidth:I
    .end local v10           #heightGap:I
    .end local v11           #panelMaker:Lcom/nemustech/regina/PanelMaker;
    .end local v12           #rc:Lcom/nemustech/regina/ResourceCare;
    .end local v13           #screenHeight:I
    .end local v14           #screenWidth:I
    .end local v15           #smallerSize:I
    .end local v16           #spaceHeight:I
    .end local v17           #spaceWidth:I
    .end local v18           #spanX:I
    .end local v19           #spanY:I
    .end local v20           #tabBarHeight:I
    .end local v21           #widthGap:I
    :goto_0
    return-void

    .line 104
    :cond_2
    const/16 v22, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    goto :goto_0
.end method

.method static synthetic access$000(Lcom/nemustech/regina/ElementAndroidWidget;)Ljava/lang/Runnable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHideHostView:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ElementAndroidWidget;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/ElementAndroidWidget;)Ljava/lang/Runnable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mDelayHider:Ljava/lang/Runnable;

    return-object v0
.end method


# virtual methods
.method public addHostViewToWorkspace()V
    .locals 5

    .prologue
    .line 130
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementAndroidWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v0

    .line 132
    .local v0, wsCell:Landroid/view/ViewGroup;
    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    if-nez v1, :cond_0

    .line 133
    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    iget v3, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewWidth:I

    iget v4, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostViewHeight:I

    invoke-direct {v2, v3, v4}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 134
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setVisibility(I)V

    .line 135
    return-void
.end method

.method public forceUpdatePanel()V
    .locals 2

    .prologue
    .line 190
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/nemustech/regina/ElementAndroidWidget$3;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementAndroidWidget$3;-><init>(Lcom/nemustech/regina/ElementAndroidWidget;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 198
    return-void
.end method

.method protected getBitmap()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 271
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mBitmap:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method public getContext()Lcom/nemustech/regina/ReginaLauncher;
    .locals 1

    .prologue
    .line 117
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method public getHostView()Landroid/appwidget/AppWidgetHostView;
    .locals 1

    .prologue
    .line 109
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    return-object v0
.end method

.method public getInternalObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 262
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    return-object v0
.end method

.method public getSnapShot()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 285
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mBitmap:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementAndroidWidget;->forceUpdatePanel()V

    .line 286
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mBitmap:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method public getSnapShot(I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "faceIndex"

    .prologue
    .line 329
    const/4 v0, 0x0

    return-object v0
.end method

.method public getSnapShotOpposite()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 323
    const/4 v0, 0x0

    return-object v0
.end method

.method public getWidgetId()I
    .locals 1

    .prologue
    .line 113
    iget v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mWidgetId:I

    return v0
.end method

.method public isAnimationObject()Z
    .locals 2

    .prologue
    .line 267
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFCustomPanel;->getOpacity()F

    move-result v0

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isObjectEventConsumer(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 281
    const/4 v0, 0x0

    return v0
.end method

.method public isOwnerOf(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 277
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public isScrollableWidget()Z
    .locals 1

    .prologue
    .line 121
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mIsScrollableWidget:Z

    return v0
.end method

.method public prepareDrawingCache()V
    .locals 2

    .prologue
    .line 301
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    if-eqz v0, :cond_0

    .line 302
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->destroyDrawingCache()V

    .line 304
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->buildDrawingCache()V

    .line 305
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mCachedBitmapGetter:Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    .line 306
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mBitmap:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    .line 307
    const-string v0, "ElementAndroidWidget"

    const-string v1, "ForcueUpdatePanel failed to get cached image, try again"

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 308
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mCachedBitmapGetter:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 311
    :cond_0
    return-void
.end method

.method public setScrollableWidget(Z)V
    .locals 0
    .parameter "isScrollableWidget"

    .prologue
    .line 125
    iput-boolean p1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mIsScrollableWidget:Z

    .line 126
    return-void
.end method

.method public switchToAnimationObject()Lcom/nemustech/tiffany/world/TFCustomPanel;
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 248
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v2, v2}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 249
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setOpacity(F)V

    .line 250
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFCustomPanel;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHideHostViewHelper:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFWorld;->setPostDrawListener(Ljava/lang/Runnable;)V

    .line 251
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;

    return-object v0
.end method

.method public switchToElementObject()Lcom/nemustech/regina/Element;
    .locals 2

    .prologue
    .line 256
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mShowHostView:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 257
    return-object p0
.end method

.method public unPressHostView()V
    .locals 2

    .prologue
    .line 138
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    if-eqz v0, :cond_0

    .line 139
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setPressed(Z)V

    .line 141
    :cond_0
    return-void
.end method

.method public updatePanel()V
    .locals 1

    .prologue
    .line 202
    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ElementAndroidWidget;->mHostView:Lcom/nemustech/regina/ReginaAppWidgetHostView;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->isUpdated()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 203
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementAndroidWidget;->forceUpdatePanel()V

    .line 205
    :cond_0
    return-void
.end method
